# -*- coding:utf-8 -*-
"""
@author:Levy
@file:people.py
@time:2018/2/12 001210:28
"""


class people(object):
    @property
    def score(self):
        return self.prople_score

    @score.setter
    def score_set(self, value):
        if not isinstance(value, int):
            raise ValueError('prople_score must be an integer!')

        if value < 0 or value > 100:
            raise ValueError('score must between 0 ~ 100!')

        if 0 <= value <= 100:
            self.prople_score = value


p = people()
p.score_set = 66
print(p.prople_score)
